﻿package frEngine.animateControler.uvControler
{
    import baseEngine.core.*;
    import frEngine.animateControler.keyframe.*;

    public class UoffsetControler extends UvOffsetControlerBase
    {

        public function UoffsetControler()
        {
            super(2);
            return;
        }// end function

        override public function get type() : int
        {
            return AnimateControlerType.UoffsetControler;
        }// end function

        override protected function getBaseValue(param1:Pivot3D) : Object
        {
            return targetMesh.material.materialParams.UVoffsetBase.x;
        }// end function

        override protected function setTargetProperty(param1) : void
        {
            _value = param1;
            return;
        }// end function

        override public function uvOffsetChangeHander() : void
        {
            changeBaseValue(null, targetMesh.material.materialParams.UVoffsetBase.x);
            return;
        }// end function

        override public function dispose(param1:Boolean = true) : void
        {
            targetMesh.setUvOffsetBase(targetMesh.material.materialParams.UVoffsetBase.x, -10000);
            super.dispose();
            return;
        }// end function

    }
}
